home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / fire-man.swf / scripts / frame_1179 / PlaceObject2_550_3 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2011-10-17  |  291 b   |  20 lines

  1. onClipEvent(enterFrame){
  2.    if(begin)
  3.    {
  4.       dorumble = true;
  5.       begin = false;
  6.       c = 0;
  7.    }
  8.    if(dorumble)
  9.    {
  10.       dy *= -1;
  11.       _root._y += dy;
  12.       c += 1;
  13.       if(c > DELAY)
  14.       {
  15.          dorumble = false;
  16.          _root._y = yi;
  17.       }
  18.    }
  19. }
  20.